Copy
TheCopy
method creates a new shape object that is a copy of this shape.
ODShape Copy ();
- return value
- A reference to the newly created shape.
DISCUSSION
The new shape does not share any data with this shape; therefore, you can modify each of the shapes independently. This method automatically deletes the new shape if the copy operation fails.This method initializes the reference count of the returned shape. When you have finished using that shape, you should call its
Release
method.EXCEPTIONS
kODErrOutOfMemory
- There is not enough memory to copy this shape.
SEE ALSO
TheODShape::CopyFrom
method (page 635).
Listing 2-14 on page 61 in OpenDoc Cookbook.
Table 11-1 on page 466 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help